pacman::p_load(tidyr,
lodown)
install.packages( "devtools" , repos = "http://cran.rstudio.com/" )
library(devtools)
install_github( "ajdamico/lodown" , dependencies = TRUE )
install.packages("devtools", repos = "http://cran.rstudio.com/")
install.packages("devtools", repos = "http://cran.rstudio.com/")
install.packages("devtools", repos = "http://cran.rstudio.com/")
library(devtools,usethis)
library(usethis)
edit_r_environ()
edit_r_environ
install.packages("usethis")
edit_r_environ
library(usethis)
pacman::p_load(devtools,usethis)
library(installr)
pacman::p_load(devtools,usethis,installr)
updateR()
install.packages( "devtools" , repos = "http://cran.rstudio.com/" )
pacman::p_load(devtools,usethis,installr)
install_github( "ajdamico/lodown" , dependencies = TRUE )
edit_r_environ
pacman::p_load(devtools,usethis,installr)
edit_r_environ
edit_r_environ()
lodown("hrs",
output_dir = file.path( path.expand( "F:/Postdoc/HRS" ),"HRS" ),
your_username = "username",
your_password = "password")
pacman::p_load(devtools,usethis,installr,lodown)
lodown("hrs",
output_dir = file.path( path.expand( "F:/Postdoc/HRS" ),"HRS" ),
your_username = "username",
your_password = "password")
lodown("hrs",
output_dir = "F:/Postdoc/HRS",
your_username = "username",
your_password = "password")
lodown( "hrs" , output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = hrs_username ,
your_password = hrs_password )
lodown( "hrs" , output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = hrs_usename ,
your_password = hrs_password )
lodown( "hrs" , output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = Sys.getenv(hrs_usename) ,
your_password = Sys.getenv(hrs_password) )
lodown( "hrs" , output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
pacman::p_load(devtools,usethis,installr,lodown,httr)
lodown( "hrs" , output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
path.expand( "~" )
lodown("hrs",
output_dir = file.path( path.expand("F:/Postdoc/HRS"), "HRS" ),
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
lodown("hrs",
output_dir = file.path( path.expand("F:/Postdoc/"), "HRS" ),
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
hrs_cat <-
get_catalog( "hrs" ,
output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
lodown("hrs",
output_dir = file.path( path.expand("F:/Postdoc/"), "HRS" ),
output_filename="x",
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
hrs_cat <-
get_catalog( "hrs" ,
output_dir = file.path( path.expand( "~" ) , "HRS" ) ,
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
lodown_hrs("hrs",
output_dir = file.path( path.expand("F:/Postdoc/"), "HRS" ),
output_filename="x",
your_username = Sys.getenv("hrs_usename") ,
your_password = Sys.getenv("hrs_password") )
pacman::p_load(devtools,usethis,installr,lodown,foreign)
data<-read.dta("F:/Postdoc/HRS/RAND/h18e1a.dta")
View(data)
pacman::p_load(fuzzyjoin,#fuzzy string joins
stringi,#string distance functions
stats,#statistics package
dplyr,#for data manipulation
stringdist,#
lfe,#linear fixed effects,
tidyr,#data manip
ggplot2,#plots
igraph,#network graphs - used for defining markets
ggmap,#using google maps and plotting things
maps,#also for mapping
googleway,#compute driving distances
GGally,
network,
sna,ggnetwork,intergraph,ggraph,segmented,revgeo,xtable,stringr,gtools,tm,stargazer,
fastDummies, #allows me to create dummy variables easily
AER,#ivreg
scales,
stargazer,
readxl,
parallel)#allows better ggplot scales)
setwd('./Codes/Adm HS SIIIR Codes/')
wd<-"C:/Users/Andrei/Google Drive/Research/20190300 Romania BAC/"
setwd('./Codes/Adm HS SIIIR Codes/')
setwd(wd)
setwd('./Codes/Adm HS SIIIR Codes/')
